README file for "Cash Transfers, Clientelism, and Political Enfranchisement: Evidence from Brazil"
Authors: Anderson Frey <anderson.frey@rochester.edu>

**** OPERATING SYSTEM ****
Microsoft Windows 10 Pro, version 10.0.18363

**** SOFTWARE ****
Results are replicable using R (version 4.1.2), and R studio (v. 2022.02.3).
Rpackages used:  lfe; data.table; dplyr; gridExtra; ggplot2; boot


Please set your working directory as the one in which this folder appears. 
to set the path type into R: setwd("PATH_NAME") 


**********************
TABLE OF CONTENTS
**********************

1. DATA FILES 

	1.1 Main_data.csv: 		main dataset used to produce most tables and figures in the paper -- observations are at the municipality-candidate-election level.
	1.2 optimal_bands.csv: 	        includes the optimal bandwidths for each relevant outcome variable and kernel, along 19 points in the treatment frontier.
	1.3 Coverage_Data.csv		only for executing Figure 2. Observations are at the municipality-election level.
	

		
2. R SCRIPT FILES 

	2.1 do_paper:    		uses the files in item 1 to produce all tables and figures in the paper. 

	
3. Codebook

	3.1 Codebook.pdf: 		includes the description of all variables in the data files listed above, and their sources.
